/**
 * Auto gen via dbpojo-gen.
 */
package com.us.usws.site.console.action;

import java.util.List;

import javax.inject.Inject;

import com.us.usws.model.domain.MeetingAttendee;
import com.us.usws.service.ro.MeetingAttendeeROService;
import com.us.usws.support.uitls.JSONDataUtil;

/**
 * Struts2 action
 * @author robot
 */
public class MeetingAttendeeAction extends BasePageSearchAction<MeetingAttendee> {

	private static final long serialVersionUID = 1L;

	private MeetingAttendee meetingAttendee;

	@Inject
	private MeetingAttendeeROService meetingAttendeeROService;

	private String uids;

	/**
	 * ajax load the list of MeetingAttendee
	 */
	public void ajaxLoadMeetingAttendees() {
		createDataPageUtil();
		List<MeetingAttendee> meetingAttendees = meetingAttendeeROService.getMeetingAttendees(getStart(), getLimit());
		getOut().println(JSONDataUtil.extJsonSupportPage(meetingAttendees, dataPageUtil.getRowCount()));
	}

	public void setMeetingAttendee(MeetingAttendee meetingAttendee) {
		this.meetingAttendee = meetingAttendee;
	}

	public MeetingAttendee getMeetingAttendee() {
		return meetingAttendee;
	}

	public String getUids() {
		return uids;
	}

	public void setUids(String uids) {
		this.uids = uids;
	}

}